import PTable from './PTable.vue'
import ToolbarButton from './ToolbarButton.vue'
import ColumnButton from './ColumnButton.vue'
import PCheckUser from './PCheckUser.vue'
import PCode from './PCode.vue'

function PTablePlugin(Vue) {
  if (PTablePlugin.installed) {
    return
  }
  Vue.component('PTable', PTable)
  Vue.component('ToolbarButton', ToolbarButton)
  Vue.component('ColumnButton', ColumnButton)
  Vue.component('PCheckUser', PCheckUser)
  Vue.component('PCode', PCode)
}

export default PTablePlugin
